package com.bbx.taxi.client.Task;

import android.app.Activity;

import com.bbx.api.sdk.model.passanger.UserBuild;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.passeger.conn.GetUserNet;
import com.bbx.taxi.client.MyApplication;
import com.bbx.taxi.client.Bean.Message.ObserverListener.DATA_TYPE;

/** 
 * @Path com.bbx.taxi.client.Task.MyUserTask.java
 * @Author 严旭文
 * @Date 2016-8-24 上午9:58:04
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 */
public class MyUserTask extends BaseTask{
    public DATA_TYPE TYPE=DATA_TYPE.USER;
    private UserBuild mUserBuild;
	public MyUserTask(Activity context) {
		super(context);
		MyApplication mApplication=MyApplication.getInstance();
		mUserBuild = new UserBuild(context);
		mUserBuild.uid = mApplication.getUid();
		mUserBuild.access_token = mApplication.getToken();
	}
	@Override
	public boolean isShow() {
		return false;
	}

	@Override
	public boolean isReturnString() {
		return false;
	}
	@Override
	public boolean condition() {
		// TODO Auto-generated method stub
		return true;
	}
	@Override
	public void request() {
		setType(TYPE,mUserBuild);
	}
	@Override
	public void success(int status,Object object) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void failed(int status, String msg,String message) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public BaseNetwork getBaseNetwork() {
		return new GetUserNet(context);
	}

}
